const floorlist={
    props:['nowdingdanlist'],
    template:`
    <ul class="list" >
    <transition-group name='foo'>
           <li v-for="(item,index) in nowdingdanlist" :key='item.text'>
            <a href="#" class="numjian" @click='add(index)'>+</a><a href="#" class="numjian" @click='jian(index)'>-</a> <a href="#" @click='remove(index)'>删除</a>
            <span class="text">{{item.text}}</span><span class="prc">{{item.prc}}</span><span class="num">{{item.num}}</span>
           </li>
           </transition-group>
      </ul>
    `,
    methods:{
      add(index){
        this.$emit('add-com',index)
      },
      jian(index){
        this.$emit('jian-com',index)
      },
      remove(index){
        this.$emit('remove-com',index)
      }
    }
   }

   const footmoney={
    props:['money'],
    template:`
    <div class="footmoney"> <span class="hejijine">合计金额:{{money}}元</span><button class="btnc">立即付款</button></div>
    `
  }
   export {footmoney,floorlist}